"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const readFileAsync_1 = __importDefault(require("../../FSTool/readFileAsync"));
async function readFromDisk({ fileSavePath, err, buffer, dataSource }) {
    if (!buffer) {
        [err, buffer] = await (0, readFileAsync_1.default)(fileSavePath);
        dataSource = 'Disk';
    }
    return [err, buffer, dataSource];
}
exports.default = readFromDisk;
